home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Run Magazine ReRun 1988 May & June
/
rerun-1988-05-06.d64
/
now you see it
(
.txt
)
< prev
next >
Wrap
Commodore BASIC
|
2022-09-20
|
5KB
|
114 lines
10 poke52,48:poke56,48:clr:dimd$(24),pp(8,10),ws(8):d$(0)=""
20 forx=1to24:d$(x)=d$(x-1)+"":next:goto430
30 printd$(1)mid$(ti$,1,2)":"mid$(ti$,3,2)":"mid$(ti$,5,2):return
40 gosub30:fb=peek(56320)and16:iffb=16then80
50 poke53280,14:poke53281,14
60 gosub30:fb=peek(56320)and16:iffb=0then60
70 poke53280,0:poke53281,0:goto40
80 js=peek(56320)and15:ifjs=11thendi=-1:c=1:goto130
90 ifjs=7thendi=1:c=3:goto130
100 c=2:ifjs=14thendi=-40:goto130
110 ifjs=13thendi=40:goto130
120 goto40
130 ifpeek(op+di)=160thenpoke54276,129:poke54276,128:goto40
140 np=op+di:tn=peek(np):pokenp+54272,cc:pokeop,32:pokenp,c:pokeop+54272,0
150 op=np:iftn=0then170
160 goto40
170 poke54283,17:poke54283,16:pr=pr-1:printd$(1)tab(38)pr:ifpr=0then190
180 goto40
190 tt$=ti$:forde=1to1000:next:restore:forx=1to5:readhi,lo:poke54287,hi
200 poke54286,lo:poke54290,17:forde=1to90:next:poke54290,16:forde=1to50:next
210 next
220 le=le+1:ifle=9then350
230 print"[147]":poke53280,6:poke53281,2:poke646,1:poke53272,(peek(53272)and240)or6
240 printd$(12)tab(11)"level"le"is next...":forde=1to1000:next
250 onlegosub570,580,590,600,610,620,630,640:poke646,mc:print"[147]"
260 poke53272,(peek(53272)and240)or12:poke53280,0:poke53281,0:x1=1104:x2=1143
270 s=1:gosub290:x1=1183:x2=2023:s=40:gosub290:x1=2022:x2=1984:s=-1:gosub290
280 x1=1944:x2=1144:s=-40:gosub290:goto300
290 forx=x1tox2steps:pokex,160:pokex+54272,15:next:return
300 rn=int(rnd(1)*8)+1:ifws(rn)=1then300
310 ws(rn)=1:onrngosub650,740,760,810,830,890,960,1020
320 forx=1to10:pokepp(rn,x),0:pokepp(rn,x)+54272,pc:next:op=1945
330 pokeop,2:pokeop+54272,cc:poke646,1:pr=10:printd$(1)tab(37)pr:ti$=tt$
340 goto40
350 forde=1to1000:next:print"[147]":poke53272,(peek(53272)and240)or4:poke646,0
360 poke53280,12:poke53281,15:printd$(9)tab(15)"game over"
370 printd$(12)tab(9)"time this game--"mid$(tt$,1,2)":"mid$(tt$,3,2)":";
380 printmid$(tt$,5,2):iftt$<bt$thenbt$=tt$
390 printtab(14)"best time--"mid$(bt$,1,2)":"mid$(bt$,3,2)":"mid$(bt$,5,2)
400 printd$(15)tab(4)pa$:forde=1to100:next:fb=peek(56320)and16:iffb=0then420
410 printd$(15)tab(4)bl$:forde=1to100:next:goto400
420 tt$="000000":le=0:forx=1to8:ws(x)=0:next:goto220
430 forx=54272to54295:pokex,0:next:poke54296,15:t1$="now you see it"
440 t2$=" ":pa$="press fire button to play again":bl$=""+pa$
450 bt$="235959":print"[147]":poke53280,2:poke53281,2:poke646,15:poke54277,9
460 poke54284,96:poke54291,9:forx=1to11:ro=int(rnd(1)*24):co=int(rnd(1)*25)
470 printd$(ro)tab(co)t1$:readhi,lo:forz=54273to54287step7:pokez,hi:pokez-1,lo
480 next:poke54276,33:poke54283,33:poke54290,17:forde=1to90:next:poke54276,32
490 poke54283,32:poke54290,16:printd$(ro)tab(co)t2$
500 next:poke646,7:printd$(12)tab(13)t1$:poke54277,10:poke54278,3:poke54273,10
510 poke54272,10:poke54284,25:poke54285,9:poke54280,51:poke54279,97
520 forz1=1to8:forz2=1to10:readpp(z1,z2):next:next:poke56334,peek(56334)and254
530 poke1,peek(1)and251:x1=384:x2=471:gosub560:x1=256:x2=263:gosub560:x1=1280
540 x2=1287:gosub560:poke1,peek(1)or4:poke56334,peek(56334)or1:forx=0to31
550 readd:poke12288+x,d:next:goto420
560 forx=x1tox2:poke12288+x,peek(53248+x):next:return
570 cc=1:pc=7:mc=15:return
580 cc=1:pc=7:mc=0:return
590 cc=1:pc=0:mc=15:return
600 cc=0:pc=7:mc=15:return
610 cc=1:pc=0:mc=0:return
620 cc=0:pc=0:mc=15:return
630 cc=0:pc=7:mc=0:return
640 cc=0:pc=0:mc=0:return
650 printd$(4);:forx=1to19:print""spc(2)" "spc(34)" ":next:printd$(6);
660 forx=1to15:print""spc(4)" "spc(30)" ":next:printd$(8);:forx=1to11
670 print""spc(6)" "spc(26)" ":next:printd$(10);:forx=1to7
680 print""spc(8)" "spc(22)" ":next:printd$(12);:forx=1to3
690 print""spc(10)" "spc(18)" ":next:printd$(10);:forx=1to7
700 print""spc(12)" "spc(14)" ":next:printd$(8);:forx=1to11
710 print""spc(14)" "spc(10)" ":next:printd$(6);:forx=1to15
720 print""spc(16)" "spc(6)" ":next:printd$(4);:forx=1to19
730 printspc(18)" ":next:return
740 forx=4to22step2:printd$(x)spc(2)" "
750 next:forx=5to21step2:printd$(x)spc(19)" ":next:return
760 printd$(7)spc(10)" ":forx=1to11:printspc(17)" "
770 next:printspc(10)" ":printd$(8);:forx=1to5
780 printspc(10)" "spc(18)" ":next:printd$(14);:forx=1to5
790 printspc(10)" "spc(18)" ":next:printd$(12)spc(18)" "
800 printd$(14)spc(18)" ":return
810 forx=4to22:printd$(x)spc(19)" ":next
820 printd$(13)" ":return
830 printd$(4)spc(5)" ":forx=5to10
840 printd$(x)spc(5)" ":next:forx=16to21
850 printd$(x)spc(5)" ":next
860 printspc(5)" ":forx=7to19
870 printd$(x)spc(10)" ":next
880 printd$(13)spc(5)" ":return
890 printd$(6)spc(4)" "spc(20)" ":forx=1to13
900 printspc(4)" "spc(30)" ":next:printspc(4)" "spc(20)" "
910 printd$(7)spc(11)" "
920 printd$(19)spc(11)" ":forx=8to18:printd$(x)spc(19)" "
930 next:printd$(8)spc(6)" "spc(18)" "
940 printd$(18)spc(6)" "spc(18)" ":forx=10to16
950 printd$(x)spc(10)" "spc(18)" ":next:return
960 forx=10to16step3:printd$(x)spc(15)" ":next:forx=3to9
970 printd$(x)spc(19)" ":next:forx=17to23:printd$(x)spc(19)" ":next
980 printd$(6)spc(10)" "
990 printd$(20)spc(10)" ":forx=7to12
1000 printd$(x)spc(10)" "spc(18)" ":next:forx=14to19
1010 printd$(x)spc(10)" "spc(18)" ":next:return
1020 forx=4to20step4:printd$(x)spc(10)" "
1030 printspc(11)" ":printspc(10)" "
1040 next:return
1050 data 34,75,40,200,34,75,40,200,45,198,54,111,54,111,45,198,40,200,45,198
1060 data 45,198,1474,1493,1634,1653,1561,1566,1547,1580,1551,1576,1242,1245
1070 data 1882,1885,1553,1574,1386,1421,1706,1741,1355,1360,1367,1372,1755,1760
1080 data 1767,1772,1562,1565,1522,1524,1602,1604,1354,1373,1754,1773,1545,1582
1090 data 1230,1239,1248,1257,1870,1879,1888,1897,1548,1579,1547,1549,1553,1555
1100 data 1562,1565,1572,1574,1578,1580,1545,1582,1202,1205,1360,1367,1760,1767
1110 data 1922,1925,1234,1253,1874,1893,1399,1408,1719,1728,1561,1566,0,28,54
1120 data 34,54,28,0,0,12,30,12,124,12,20,36,108,28,54,28,99,28,20,54,0,48,120
1130 data 48,62,48,40,36,54